package com.lening.community.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseController;
import com.lening.community.dto.GarageDto;
import com.lening.community.pojo.Garage;
import com.lening.community.service.GarageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:07
 */
@RestController
@RequestMapping("garage")
public class GarageController extends BaseController<Garage, GarageDto, GarageService> {
    @Autowired(required = false)
    private GarageService garageService;
    @Autowired(required = false)
    private WebClient webClient;


//    @GetMapping("pages")
//    public Page<Garage> getGarage(GarageDto garageDto) {
//        Page<Garage> page = garageService.page(garageDto);
//
//        return page;
//    }
}
